package com.suny.DataDic.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serializable;

@Schema(name = "DataDicDTO",description = "数据字典传输对象")
@Data
public class DataDicDTO implements Serializable {
    /**
     * 字典名称
     */
    @Schema(name = "name",description = "字典名称")
    @NotBlank(message = "字典名称不能为空")
    @Size(max = 10,message = "字典名称最长10个字符")
    @Size(min = 1,message = "内容不能为空")
    private String name;
}
